<%-- 
    Document   : addTransaction
    Created on : Oct 28, 2011, 9:14:05 AM
    Author     : Tunp
--%>

<%@ include file="/WEB-INF/jsp/include.jsp" %> 
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Add Transaction:</title>
    <script language="javascript" type="text/javascript">
            function isNumeric(evt) {
                
            }
        </script>
    </head>
    <body>
        <h1>New Transaction:</h1>
        <form:form method="POST" >
            <table>
            
            <tr>
                <td>
                    <b>Transaction Id:</b>
                </td>
                <td>
                <input type="text" name="transId" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Transaction Type:</b>
                </td>
                <td>
                    <input type="radio" name="transType" value="Domestic" checked="checked" />Domestic
                    <input type="radio" name="transType" value="Foreign"  />International
                </td>
            </tr>
            <tr>
                <td>
                    <b>Transaction Date:</b>
                </td>
                <td>
            <input type="text" name="transDate" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Order Info Id:</b>
                </td>
                <td>
            <input type="text" name="orderInfoId" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Card number:</b>
                </td>
                <td>
            <input type="text" name="cardnumber" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Card holder name:</b>
                </td>
                <td>
            <input type="text" name="cardholder" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Bank Id:</b>
                </td>
                <td>
            <input type="text" name="bankId" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>IP:</b>
                </td>
                <td>
            <input type="text" name="ip" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Merchant Id:</b>
                </td>
                <td>
            <input type="text" name="merchantId" maxlength="100" />
                </td>
            </tr>
            
<!-- Buyer -->
            <tr>
                <td>
                    <b>Buyer: </b>
                </td>
                <td>
                    <table style="border: solid chocolate">
                        <tr>
                            <td>
                                <b>name:</b>
                            </td>
                            <td>
                                <input type="text" name="buyername" maxlength="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Gender:</b>
                            </td>
                            <td>
                                <input type="radio" name="buyergender" value="M" checked="checked" />Male
                                <input type="radio" name="buyergender" value="F"  />Female
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>country:</b>
                            </td>
                            <td>
                                <select name="buyercountry">
                                    <c:forEach var="ctr" items="${lstCountries}" >
                                        <option value="<c:out value="${ctr.countryId}"></c:out>">
                                            <c:out value="${ctr.countryName}"></c:out>
                                        </option>
                                    </c:forEach>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>city:</b>
                            </td>
                            <td>
                                <select name="buyercity">
                                    <c:forEach var="ct" items="${lstCities}" >
                                        <option value="<c:out value="${ct.cityId}"></c:out>">
                                            <c:out value="${ct.cityName}"></c:out>
                                        </option>
                                    </c:forEach>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Address:</b>
                            </td>
                            <td>
                                <input type="text" name="buyeraddress" maxlength="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Email:</b>
                            </td>
                            <td>
                                <input type="text" name="buyeremail" maxlength="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Tel:</b>
                            </td>
                            <td>
                                <input type="text" name="buyertel" maxlength="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Hand phone:</b>
                            </td>
                            <td>
                                <input type="text" name="buyerphone" maxlength="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Fax:</b>
                            </td>
                            <td>
                                <input type="text" name="buyerfax" maxlength="100" />
                            </td>
                        </tr>
                        
                    </table>
                    
                </td>
            </tr>
            
<!-- Receiver -->
            <tr>
                <td>
                    <b>Receiver: </b>
                </td>
                <td>
                    <table style="border: solid chocolate">
                        <tr>
                            <td>
                                <b>name:</b>
                            </td>
                            <td>
                                <input type="text" name="Receivername" maxlength="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Gender:</b>
                            </td>
                            <td>
                                <input type="radio" name="Receivergender" value="M" checked="checked" />Male
                                <input type="radio" name="Receivergender" value="F" />Female
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>country:</b>
                            </td>
                            <td>
                                <select name="Receivercountry">
                                    <c:forEach var="ctr" items="${lstCountries}" >
                                        <option value="<c:out value="${ctr.countryId}"></c:out>">
                                            <c:out value="${ctr.countryName}"></c:out>
                                        </option>
                                    </c:forEach>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>city:</b>
                            </td>
                            <td>
                                <select name="Receivercity">
                                    <c:forEach var="ct" items="${lstCities}" >
                                        <option value="<c:out value="${ct.cityId}"></c:out>">
                                            <c:out value="${ct.cityName}"></c:out>
                                        </option>
                                    </c:forEach>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Address:</b>
                            </td>
                            <td>
                                <input type="text" name="Receiveraddress" maxlength="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Email:</b>
                            </td>
                            <td>
                                <input type="text" name="Receiveremail" maxlength="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Tel:</b>
                            </td>
                            <td>
                                <input type="text" name="Receivertel" maxlength="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Hand phone:</b>
                            </td>
                            <td>
                                <input type="text" name="Receiverphone" maxlength="100" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <b>Fax:</b>
                            </td>
                            <td>
                                <input type="text" name="Receiverfax" maxlength="100" />
                            </td>
                        </tr>
                        
                    </table>
                    
                </td>
            </tr>
            
            <tr>
                <td>
                    <b>Expect Receiving Date:</b>
                </td>
                <td>
            <input type="text" name="expectReceiveDate" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Response Code:</b>
                </td>
                <td>
            <input type="text" name="responsecode" maxlength="100" />
                </td>
            </tr>
            <tr>
                <td>
                    <b>Amount:</b>
                </td>
                <td>
            <input type="text" name="amount" maxlength="100" />
                </td>
            </tr>
            
            <tr>
                <td colspan="2">
                    <input type="submit" value="OK"></input>
                    <input type="hidden" name="newtrans" value="OK" />
                </td>
            </tr>
            
            </table>
            <a href="index.htm"><b> Back to index </b> </a>
        </form:form>
    </body>
</html>
